package com.snatch.work.vo;

import java.util.Date;

import org.apache.http.impl.client.DefaultHttpClient;

import com.snatch.common.vo.LoginAccount;
import com.snatch.common.vo.Proxy;
import com.snatch.common.vo.SnatchTask;
import com.snatch.common.vo.WebInfo;

/**
 * 第三方信息对象
 * 
 * @author Administrator
 * 
 */
public class ThirdInfo {
	WebInfo webConfig = new WebInfo();
	LoginAccount loginAccount = new LoginAccount();
	Proxy proxy = new Proxy(); //代理配置
	private Date loginTime = new Date(); // 登录时间
	private DefaultHttpClient httpClient; // httpClient
	private String keepAliveUrl; // 保持链接地址
	private boolean isSnatch = false;// 帐号是否正在进行抓取动作 true:是,false:否
	private long lastTime;// 帐号最后访问第三方网站时间，用来判断是否长时间没有访问第三方网站
	private boolean valid = true;
	String whyValid;

	public long getLastTime() {
		return lastTime;
	}

	public Proxy getProxy() {
		return proxy;
	}

	public void setProxy(Proxy proxy) {
		this.proxy = proxy;
	}


	public void setLastTime(long lastTime) {
		this.lastTime = lastTime;
	}

	public boolean isSnatch() {
		return isSnatch;
	}

	public void setSnatch(boolean isSnatch) {
		this.isSnatch = isSnatch;
	}

	/**
	 * 抓取类型：全量抓取为0 选择抓取为1 默认为全量
	 */
	private int snatchType = 0;


	/**
	 * 是否已将联赛列表添加到已选择,默认为未false
	 */
	private boolean addToSelect = false;
	/**
	 * 联赛列表，用,分隔
	 */
	private String leagues;

	// 下一次更新时间
	private String nextUpdateTime;


	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public DefaultHttpClient getHttpClient() {
		return httpClient;
	}

	public void setHttpClient(DefaultHttpClient httpClient) {
		this.httpClient = httpClient;
	}

	public String getKeepAliveUrl() {
		return keepAliveUrl;
	}

	public void setKeepAliveUrl(String keepAliveUrl) {
		this.keepAliveUrl = keepAliveUrl;
	}

	public String getNextUpdateTime() {
		return nextUpdateTime;
	}

	public void setNextUpdateTime(String nextUpdateTime) {
		this.nextUpdateTime = nextUpdateTime;
	}

	public int getSnatchType() {
		return snatchType;
	}

	public void setSnatchType(int snatchType) {
		this.snatchType = snatchType;
	}

	public String getLeagues() {
		return leagues;
	}

	public void setLeagues(String leagues) {
		this.leagues = leagues;
	}

	public boolean isAddToSelect() {
		return addToSelect;
	}

	public void setAddToSelect(boolean addToSelect) {
		this.addToSelect = addToSelect;
	}


	public LoginAccount getLoginAccount() {
		return loginAccount;
	}

	public void setLoginAccount(LoginAccount loginAccount) {
		this.loginAccount = loginAccount;
	}

	public WebInfo getWebConfig() {
		return webConfig;
	}

	public void setWebConfig(WebInfo webConfig) {
		this.webConfig = webConfig;
	}

	public boolean isValid() {
		return valid;
	}

	public void setValid(boolean valid) {
		this.valid = valid;
	}

	public String getWhyValid() {
		return whyValid;
	}

	public void setWhyValid(String whyValid) {
		this.whyValid = whyValid;
	}



}
